SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 61438: Creating a Netezza view fails with “ERROR: The create view statement cannot be executed directly against the database because of errors”

DetailsAboutRate It

SAS® Data Integration Studio can be used to model processes that create Netezza tables and then create Netezza views that reference these tables. You might encounter an issue in which the Netezza view creation code fails with this error:

ERROR: The create view statement cannot be executed directly against the database because of errors.

You might encounter this issue when you perform steps similar to the following:

  1. Run the SAS Data Integration job that creates the Netezza table and then creates a Netezza view of that same table.
  2. Modify the SAS Data Integration job and change one of the column names in the Netezza table and view.
  3. Attempt to run the job again. The Netezza table is deleted and re-created, but the Netezza view creation code fails with the error mentioned above.

To circumvent the issue, use SQL procedure pass-through code similar to the following to delete the Netezza view:

proc sql;
connect to netezza (database=nz_database server=nz_server authdomain="NetezzaAuth" );
execute (drop view nz_view_name) by netezza;
disconnect from netezza;
quit;


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to NetezzaMicrosoft® Windows® for x649.419.439.4 TS1M49.4 TS1M6
Microsoft Windows 8 Enterprise 32-bit9.419.439.4 TS1M49.4 TS1M6
Microsoft Windows 8 Enterprise x649.419.439.4 TS1M49.4 TS1M6
Microsoft Windows 8 Pro 32-bit9.419.439.4 TS1M49.4 TS1M6
Microsoft Windows 8 Pro x649.419.439.4 TS1M49.4 TS1M6
Microsoft Windows 8.1 Enterprise 32-bit9.419.439.4 TS1M49.4 TS1M6
Microsoft Windows 8.1 Enterprise x649.419.439.4 TS1M49.4 TS1M6
Microsoft Windows 8.1 Pro 32-bit9.419.439.4 TS1M49.4 TS1M6
Microsoft Windows 8.1 Pro x649.419.439.4 TS1M49.4 TS1M6
Microsoft Windows 109.419.439.4 TS1M49.4 TS1M6
Microsoft Windows Server 20089.419.4 TS1M4
Microsoft Windows Server 2008 R29.419.4 TS1M4
Microsoft Windows Server 2008 for x649.419.4 TS1M4
Microsoft Windows Server 2012 Datacenter9.419.439.4 TS1M49.4 TS1M6
Microsoft Windows Server 2012 R2 Datacenter9.419.439.4 TS1M49.4 TS1M6
Microsoft Windows Server 2012 R2 Std9.419.439.4 TS1M49.4 TS1M6
Microsoft Windows Server 2012 Std9.419.439.4 TS1M49.4 TS1M6
Windows 7 Enterprise 32 bit9.419.439.4 TS1M49.4 TS1M6
Windows 7 Enterprise x649.419.439.4 TS1M49.4 TS1M6
Windows 7 Home Premium 32 bit9.419.439.4 TS1M49.4 TS1M6
Windows 7 Home Premium x649.419.439.4 TS1M49.4 TS1M6
Windows 7 Professional 32 bit9.419.439.4 TS1M49.4 TS1M6
Windows 7 Professional x649.419.439.4 TS1M49.4 TS1M6
Windows 7 Ultimate 32 bit9.419.439.4 TS1M49.4 TS1M6
Windows 7 Ultimate x649.419.439.4 TS1M49.4 TS1M6
64-bit Enabled AIX9.419.439.4 TS1M49.4 TS1M6
64-bit Enabled Solaris9.419.439.4 TS1M49.4 TS1M6
HP-UX IPF9.419.439.4 TS1M49.4 TS1M6
Linux for x649.419.439.4 TS1M49.4 TS1M6
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.